<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="label.address.view"/></title>
</head>
<body>


<table align=center>
<tr><td><h1 ><s:text name="label.address.view"/> </h1></td></tr>
</table>
	<table width=600 align=center>
	  <s:url id="task" action="addressBulkTask"/>
    	         <td><s:a href="%{task}">Click Here to execute bulk insert task</s:a></td>
    	     </tr>

	    <tr> <s:url id="insert" action="addressSetUpForInsert"/>
	         <td><s:a href="%{insert}">Click Here to Add New Address</s:a></td>
	     </tr>
	      <tr> <s:url id="insert" action="interAddressSetUpForInsert"/>
         	         <td><s:a href="%{insert}">Click Here to Add New International Address</s:a></td>
         	     </tr>
	</table><br/>
<table align=center class="borderAll">
    <tr>
        <th><s:text name="label.address.addressId"/></th>
        <th><s:text name="label.address.street"/></th>
        <th><s:text name="label.address.zipcode"/></th>
        <th><s:text name="label.address.addressType"/></th>
        <th><s:text name="label.address.lastUpdate"/></th>
        <th>&nbsp;</th>
    </tr>
    <s:iterator value="addresses" status="status">
        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
            <td class="nowrap"><s:property value="addressId"/></td>
            <td class="nowrap"><s:property value="street"/></td>
            <td class="nowrap"><s:property value="zipcode"/></td>
            <td class="nowrap"><s:property value="addressType"/></td>
            <td class="nowrap"><s:property value="lastUpdate"/></td>
            <td class="nowrap"> </td>
            <td class="nowrap"> </td>
            <td class="nowrap">

                        <s:url id="update" action="addressSetUpForUpdate">
            		       		   <s:param name="address.addressId" value="addressId"/>
            		       		</s:url>
                        <s:a href="%{update}">Edit</s:a>
                            &nbsp;&nbsp;&nbsp;
                        <s:url id="delete" action="addressDelete">
            		       		   <s:param name="address.addressId" value="addressId"/>
            		       		</s:url>
                       <s:a href="%{delete}">Delete</s:a>
            </td>



        </tr>  		
	 </s:iterator>



    </table>
</body>
</html>
